#ifndef NETWORK_SERVER_H
#define NETWORK_SERVER_H

#include "NetworkSession.h"

using namespace boost::asio;
using boost::asio::ip::tcp;
using boost::asio::ip::basic_endpoint;

namespace mp_net
{
	class NetworkServer : public NetworkSession
	{
	public:
		NetworkServer();
		virtual ~NetworkServer();

		virtual void Initialize();
		virtual void Update();
		virtual void Uninitialize();
		
		virtual void Start();

		virtual void NetThreadProc();
		void NewConnection(const boost::system::error_code& error);

	private:
		tcp::acceptor*		m_acceptor;		//Server
	};
}

#endif